package shortlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shortlink.dao.entity.GroupDO;
import shortlink.dto.req.ShortLinkGroupSortReqDTO;
import shortlink.dto.req.ShortLinkGroupUpdateReqDTO;
import shortlink.dto.resp.ShortLinkGroupRespDTO;

import java.util.List;

public interface GroupService extends IService <GroupDO>{
    void saveGroup(String name);
    void saveGroup(String username,String name);

    List<ShortLinkGroupRespDTO> listGroup();

    void updateGroup(ShortLinkGroupUpdateReqDTO requestParam);

    void deleteGroup(String gid);


    void sortGroup(List<ShortLinkGroupSortReqDTO> requestParam);
}
